﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class Redirector : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnScio_Click(object sender, EventArgs e)
    {
        ManageLibrary manager = new ManageLibrary();

        Library lib = manager.getLibrary("1");

        Session["theme"] = lib.Theme;
        Response.Redirect("Default.aspx?id=1");
    }
    protected void btnWou_Click(object sender, EventArgs e)
    {
        ManageLibrary manager = new ManageLibrary();

        Library lib = manager.getLibrary("2");

        Session["theme"] = lib.Theme;
        Response.Redirect("Default.aspx?id=2");
    }
    protected void btnJeff_Click(object sender, EventArgs e)
    {
        ManageLibrary manager = new ManageLibrary();

        Library lib = manager.getLibrary("3");

        Session["theme"] = lib.Theme;
        Response.Redirect("Default.aspx?id=3");
    }
}
